﻿using Microsoft.CodeAnalysis;

namespace UIOC.CodeAnalysis.Diagnostics;

internal static class ImplementAttributeNonAbstractMemberDeclarationDiagnostic {

    public const string DiagnosticId = "UIOC0021";

    private const string Title = "'[Implement]' 抽象成员分析";
    private const string MessageFormat = "由于类型 ‘{0}’ 标注了 '[Implement]' 特性, 其成员 ‘{1}’ 不能是抽象成员";
    private const string Description = "检测标了 '[Implement]' 的类不能有抽象成员";
    private const string Category = "Usage";

    public static readonly DiagnosticDescriptor Rule = new(
        DiagnosticId,
        Title,
        MessageFormat,
        Category,
        DiagnosticSeverity.Error,
        isEnabledByDefault: true,
        description: Description
    );
}
